<template>
  <div class="main">
    <!-- <el-container class="main-content"> </el-container> -->
    <el-container class="main-content">
      <el-aside width="160px">
        <!-- :collapse="isCollapse" -->
        <nav-menu />
      </el-aside>
      <el-container class="page">
        <el-main class="page-content">
          <div class="page-info">
            <router-view></router-view></div
        ></el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script lang="ts">
import NavMenu from '@/components/nav-menu'
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'main-box',
  components: {
    NavMenu
  }
})
</script>
<style lang="less" scoped>
.main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.el-main {
  padding: 0;
}
.main-content,
.page {
  height: 100%;
}
.page-content {
  // height: calc(100% - 48px);
  .page-info {
    background-color: #fff;
  }
}
.el-aside {
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 200px;
  text-align: left;
  cursor: pointer;
  background-color: #679aff;
  transition: width 0.3s linear;
  scrollbar-width: none; /* firefox */
  -ms-overflow-style: none; /* IE 10+ */

  &::-webkit-scrollbar {
    display: none;
  }
}
</style>
